package com.bingo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bingo.common.R;
import com.bingo.entity.Divide;
import com.bingo.entity.dto.HappenedInPeriod;
import com.bingo.entity.dto.everyDayForm.EveryDayDivide;
import com.bingo.entity.dto.resp.DivideRecord;
import com.bingo.entity.dto.resp.RespSiteDivide;

import java.sql.Date;
import java.util.List;

public interface DivideService extends IService<Divide> {
    //新增食耗记录
    R add(String poolNoOut,String poolNoIn,Integer quantity,Double weight,Date date,String userId);

    //分进分出汇总
    void summaryDivide(String poolNo, Date startDate, Date endDate, HappenedInPeriod happenedInPeriod);

    //查询时间段内的分进分出记录
    List<EveryDayDivide> selectEveryDayDivide(List<String> poolNos, Date startDate, Date endDate);

    //查询场的分进分出记录
    List<RespSiteDivide> selectSiteDivide(List<String> siteNos, Date startDate, Date endDate);

    //查询分进分出记录
    List<DivideRecord> selectDivideRecord(List<String> poolNos, Date startDate, Date endDate, String userId);
}
